﻿package mortal.game.net.command.copy.escortCopy
{
    import Framework.MQ.*;
    import Message.Command.*;
    import Message.Public.*;
    import mortal.game.cache.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.game.utils.*;
    import mortal.mvc.core.*;

    public class EscortCopyCommand extends BroadCastCall
    {

        public function EscortCopyCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            var _loc_2:SEscortInfo = null;
            var _loc_3:SPublicStr = null;
            super.call(param1);
            switch(param1.messageHead.command)
            {
                case EPublicCommand._ECmdPublicEscortEscortInfo:
                {
                    _loc_2 = param1.messageBase as SEscortInfo;
                    Cache.instance.copy.escort.sEscortInfo = _loc_2;
                    if (!CopyUtil.isHasNomalEscortTask)
                    {
                        NetDispatcher.dispatchCmd(ServerCommand.EscortCopyEscortInfo, _loc_2);
                    }
                    break;
                }
                case EPublicCommand._ECmdPublicEscortFirstRobName:
                {
                    _loc_3 = param1.messageBase as SPublicStr;
                    NetDispatcher.dispatchCmd(ServerCommand.EscortFirstRobName, _loc_3);
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

    }
}
